export const userRouter = [{
    path: '/chart',
    redirect: '/chart/line',
    meta: {
      title: '可视化图表',
      icon: 'chart'
    },
    component: 'layout/Layout',
    name: 'Chart',
    children: [{
        path: 'line',
        name: 'LineChart',
        meta: {
          title: '折线图'
        },
        component: 'views/echarts/LineChart/index'
      },
      {
        path: 'bar',
        name: 'BarChart',
        meta: {
          title: '柱状图'
        },
        component: 'views/echarts/BarChart/index'
      },
      {
        path: 'pie',
        name: 'PieChart',
        meta: {
          title: '饼图'
        },
        component: 'views/echarts/PieChart/index'

      }
    ]
  },
  {
    path: '/table',
    redirect: '/table/index',
    meta: {
      title: '表格',
      icon: 'table'
    },
    component: 'layout/Layout',
    name: 'Table',
    children: [{
      path: 'basic',
      name: 'TableBasic',
      meta: {
        title: '基础表格'
      },
      component: 'views/table/basic'

    }, ]
  },
  {
    path: '/setting',
    redirect: '/setting/center',
    meta: {
      title: '设置',
      icon: 'setting'
    },
    component: 'layout/Layout',
    name: 'Setting',
    children: [{
        path: 'center',
        name: 'SettingCenter',
        meta: {
          title: '个人中心'
        },
        component: 'views/setting/center'

      },
      {
        path: 'password',
        name: 'SettingPassword',
        meta: {
          title: '重置密码'
        },
        component: 'views/setting/password'

      }
    ]
  },
  {
    path: '/:pathMatch(.*)*',
    component: 'views/404/404',
    hidden: true
  }
]